package com.example.entity.matirx;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(description = "保养记录")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "keep_record")
public class KeepRecord implements Serializable {
    /**
     * 单号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "单号",example = "1")
    private Integer id;

    /**
     * 模具id
     */
    @TableField(value = "moudle_id")
    @ApiModelProperty(value = "模具id")
    private String moudleId;

    /**
     * 保养计划id
     */
    @TableField(value = "plan_id")
    @ApiModelProperty(value = "保养计划id",example = "1")
    private Integer planId;

    /**
     * 记录状态 1当前保养 2历史保养
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "记录状态 1当前保养 2历史保养",example = "1")
    private Integer status;
    @TableField(value = "get_id")
    @ApiModelProperty(value = "取样记录id",example = "1")
    private Integer getId;

    @TableField(value = "creator",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "")
    private String creator;

    @TableField(value = "updater",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "")
    private String updater;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "")
    private LocalDateTime createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}